package io.finer.erp.jeecg.purchase.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 采购申请行
 * </p>
 *
 * @author yaoyifan
 * @since 2021-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PurchaseRequestLine对象", description="采购申请行")
public class PurchaseRequestLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "主表")
    private String mid;

    @ApiModelProperty(value = "物料")
    private String materialId;

    @ApiModelProperty(value = "申请数量")
    private BigDecimal requestNum;

    @ApiModelProperty(value = "已采购数量")
    private BigDecimal purchasedNum;

    @ApiModelProperty(value = "待处理数量")
    private BigDecimal processNum;

    @ApiModelProperty(value = "单位")
    private String unitId;

    @ApiModelProperty(value = "参考单价")
    private BigDecimal referencePrice;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "供应商")
    private String supplierId;

    @ApiModelProperty(value = "币种")
    private String currencyId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划使用日期")
    private Date planUseDate;

    @ApiModelProperty(value = "收货库位")
    private String destWarehouseId;

    @ApiModelProperty(value = "采购员")
    private String buyer;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本")
    private Integer version;


}
